Repository navigation
Conversation
Maven 3.10 only sends the credentials of the server "central" to repo.maven.apache.org. Snapshot uploads to central.sonatype.com went out without them and got a 401. Signed-off-by: emir <52245396+EmiRZx@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #781
the snapshot deploys fail since the Maven wrapper went from 3.9.16 to 3.10.1 in #775. Maven 3.10 only sends credentials to the origins it knows for a server id. for
centralthat'shttps://repo.maven.apache.org. so the uploads to central.sonatype.com go out without the token and get a 401. the deploy log has a warning about it.this renames the id to
central-portalin the pom and the workflow. the secrets stay the same. someone who deploys by hand has to rename the server in their own settings.xml too.I ran the deploy of the root pom against a local server with fake credentials. on main the upload has no Authorization header and fails with a 401. with this change all uploads have it and the deploy passes. I couldn't test the real repository or a release upload.